package cn.fjsay.java.demo2;

public class Student {
    private String name;
    private double totalScore;//高考总分
    public Student(){

    }

    public Student(String name, double totalScore) {
        this.name = name;
        this.totalScore = totalScore;
    }//构造函数
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name=name;
    }
    public double getTotalScore(){
        return totalScore;
    }
    public void setTotalScroe(double getTotalScore){
        this.totalScore=getTotalScore;
    }


}
